package com.manga.util;

import lombok.Getter;
import lombok.Setter;

import java.io.File;

@Getter
@Setter
public class FileInfo {
    private String fileName;
    private long time;
    private long size;
    private boolean isDirectory;

    public FileInfo(File file){
        this.fileName = file.getName();
        time = file.lastModified();
        size = file.length();
        isDirectory = file.isDirectory();
    }
}
